<?php 
defined('BASEPATH') OR exit('No direct script access allowed');

class Groups_mdl extends CI_Model{
	
	const TABLE = 'groups';
	
	/**
	 * 查询全部用户组
	 */
	public function get_all(){
		$this->db->select("id,name");
		$query = $this->db->get(self::TABLE);
		return $query->result_array();
	}
}
